<%-- Config params _____________________________START --%>

<%@ attribute
	name="text"
	type="java.lang.String"
	required="false"
	description="(String)The option text"
 %>

<%@ attribute
	name="value"
	type="java.lang.String"
	required="true"
	description="Combobox option value"
 %>

<%-- Config params _____________________________END --%>

<%@ include file="inc/taglibs.jsp" %>
<%@ tag 
	import="org.apache.commons.beanutils.BeanUtils"
	dynamic-attributes="dynamicAttributes"
	description="Simple tag providing Ext.ComboboxItems (via SimpleStore)" %>
	
	<c:if test="${empty(text)}">
		<jsp:doBody var="text" scope="page" />
	</c:if>
	
	
	<extutil:processTagAttributes 
		configVar="configMap" 
		eventsVar="eventsMap" 
		include="*" 
		tagJspContext="<%=jspContext %>"
		dynamicAttributes="${dynamicAttributes}" />	
	
	<%-- Process JSP body --%>
	<c:set var="item">
		    ['${value}', Gfa.CommonUtil.matchLanguage('${text}')],
	</c:set>
	
	<extutil:setParentProperties 
		tag="<%=this%>" 
		items="${item}" />